import React from 'react';

class UserUnLoginStateComponent extends React.Component{

	constructor(props){
		super(props);
		this.user = props.user;
	} 

	render(){
		return (

				<div>
				 <p>未登录</p>
				 <p>请您登录</p>
				   {
				  	this.user && this.user.id=== 1001 &&
        			 <h2>
          				 hello {this.user.firstName}
        			</h2>
      				}
				</div>

			 
			);
	}
}
export default UserUnLoginStateComponent;